<template>
  <div class="containerTitle">
    <div style="font-size: 20px; color: #045db9">{{text}}</div>
    <slot></slot>
    <div class="more" @click="$emit('jump')" v-if="more">更多+</div>
  </div>
</template>

<script>
  export default {
    props:{
      text:{
        type:String,
        default:""
      },
      more:{
        type:Boolean,
        default:false
      }
    }
  }
</script>

<style lang="scss" scoped>
  .containerTitle{
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 3px solid #045db9;
    margin: 20px 0;
    font-weight: bold;
    .more{
      font-size: 12px;
    }
    .more:hover {
      cursor: pointer;
      text-decoration: underline;
    }
  }
</style>